package cn.bdqn.mapper;

import cn.bdqn.domain.SendFreight;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 发货单接口
 * @author dkj
 */
public interface SendFreightMapper {


    /**
     * 根据id查询
     * @param id
     * @return
     */
    SendFreight selectByPrimaryKey(Integer id);


    /**
     * 根据发货单号模糊查询
     * @param sendFreightNumber
     * @return
     */
    public List<SendFreight> selectByLikeSendFreightNumber(String sendFreightNumber);


    /**
     * 根据
     * @param sendFreightNumber
     * @param paymentType
     * @param sendFreightState
     * @return
     */
    public List<SendFreight> selectLikeSendFreightNumberByPaymentTypeBySendFreightState(@Param("sendFreightNumber") String sendFreightNumber,
                                                                                        @Param("paymentType")Integer paymentType,
                                                                                        @Param("sendFreightState")Integer sendFreightState);

    /**
     * 新增
     * @param sendFreight
     */
    public void insertSendFreight(SendFreight sendFreight);

    /**
     * 更新
     * @param sendFreight
     */
    public void updateSendFreight(SendFreight sendFreight);


}
